Part Number Hot Search : 
FM25L04B CXA1479Q 6322F33 C7453 BGA43 SDM0565R 0M106 AWL6254
Product Description
Full Text Search
 

To Download UM1518 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  december 2012 doc id 022791 rev 2 1/37 UM1518 user manual st7580 power line modem demonstration kit graphical user interface (gui) introduction the ?st7580 gui? is a software tool that allows one or more st power line modem (plm) demonstration boards to be interfaced with a personal computer (pc). only plm demonstration boards equipped with the st7580 device are supported. when using the st7580 gui the user has complete control of the st7580 device, having access to all its registers and functions described in [ 2 ]. the typical application environment (shown in figure 1 ) consists of an st7580 gui running on a pc and communicating through a usb connection with a plm demonstration kit equipped with the st7580 product, such as the evalkitst7580-1 (consisting of an evalst7580-1 modem board and an evlaltair900-m1 power supply board). figure 1. st7580 typical application environment per s onal computer ( p c) s t75 8 0gui u s b c ab le main s pl u g e valkit s t75 8 0-1 s t75 8 0 plm ev a l ua tion bo a rd (eval s t75 8 0-1) altair4-900 power su pply ev a l ua tion bo a rd (evlaltair900-m1) am16520v1 www.st.com
contents UM1518 2/37 doc id 022791 rev 2 contents 1 document conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.1 list of abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 connection procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 gui installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.1 software license agreement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 system requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.3 installing the software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 opening the com . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5 services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.1 basic modem configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.2 power line communication: transmission and reception . . . . . . . . . . . . . . 16 5.2.1 power line transmission command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.2.2 power line confirm command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.2.3 power line reception command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.3 mib operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.4 other st7580 commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.4.1 ping commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.4.2 reset commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.4.3 status message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.5 host interface errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.6 ping session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.6.1 ping protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.6.2 ping master session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.6.3 ping slave session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.6.4 starting and stopping a ping session . . . . . . . . . . . . . . . . . . . . . . . . . . 34 6 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
UM1518 contents doc id 022791 rev 2 3/37 7 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
list of figures UM1518 4/37 doc id 022791 rev 2 list of figures figure 1. st7580 typical application environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 2. hardware update wizard screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 figure 3. completing the found new hardware update wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 figure 4. st7580 gui installation wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 5. st7580 gui destination folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 6. gui setup start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 7. gui setup finish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 8. st7580 gui . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 9. modem connection procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 10. modem connection success . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 11. modem configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 12. power line transmission box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 13. transmission notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 14. power line confirm box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 figure 15. reception notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 figure 16. position of mib objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 17. pingrequest and pingconfirm graphical tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 18. resetrequest command: console view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 19. resetindication command: console view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 20. status message fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 21. host interface error occurrence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 22. ping session: master and slave tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 figure 23. payload subfields on dl frames of ping session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 24. ping session: master flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 25. ping session: slave flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 figure 26. ping master tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 27. ping slave tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
UM1518 document conventions doc id 022791 rev 2 5/37 1 document conventions 1.1 list of abbreviations the following abbreviations are used: table 1. abbreviations abbreviation description pre preamble uw unique word mib management information base zc zero-crossing phy physical layer dl data link layer
connection procedure UM1518 6/37 doc id 022791 rev 2 2 connection procedure in order to connect the evalkitst7580-1 to the pc, the user must follow the instructions below: 1. connect the board to the pc using a mini-usb cable. 2. plug a power cable into the board ac power plug. 3. plug the power cable into the power socket. as soon as the board is powered, the leds dl1, dl2 on evalst7580-1 switch on. usb/uart adapter driver installation the usb communication between the evalkitst7580-1 and the pc is managed through the onboard stm32 microcontroller, whose embedded default code acts as a usb to uart bridge. in order to allow the pc to properly recognize this microcontroller application, the installation of a proper software driver is necessary. assuming that the device drivers are not yet installed, the user must: 1. download the latest available virtual com port (vcp) drivers from the st website (at www.st.com) and unzip them to a location on the host pc. 2. launch the setup file ?vcp_v1.3.1_setup.exe? to install the virtual com port driver on the pc. 3. when the screen shown in figure 2 is displayed, click ?next? to proceed with the installation. figure 2. hardware update wizard screen
UM1518 connection procedure doc id 022791 rev 2 7/37 4. the setup is completed and the screen shown in figure 3 is displayed. figure 3. completing the found new hardware update wizard 5. connect the evalkitst7580-1 to a spare usb port on the host pc: an ?stmicroelectronics virtual com port? is recognized by the pc device manager and the evalst7580-1 is installed and ready to use.
gui installation UM1518 8/37 doc id 022791 rev 2 3 gui installation 3.1 software license agreement 1. important before loading this software you must read carefully and agree to the following terms and conditions which are automatically agreed to by loading this software or any portion thereof. if you do not agree to the terms of this agreement, do not install or use this software or any portion thereof. 2. license grant st grants you a non-exclusive, royalty-free, worldwide license to this software written for st products (?software?). you have the right to use, copy, modify and distribute the software with st products only. all st software is required to contain the st copyright notice which is not to be removed for any reason. you acknowledge that the software is not designed nor authorized for use in life supporting devices or systems. 3. ownership and copyright of software title to the software and all copies thereof remain with st. the software is copyrighted and protected by worldwide copyright laws and international treaty provisions. except as expressly provided herein, st does not grant any express or implied right to you under st patents, copyrights, trademarks, or trade secret information. 4. warranties and liabilities st makes no warranty express or implied including but not limited to, any warranty of (i) marketability or suitability for a particular purpose and/or (ii) requirements, for a particular purpose in relation to the software which is provided on an ?as is? basis. all warranties, conditions, or other terms implied by law are excluded to the fullest extent permitted by law. st is not liable for any claim made by you and/or against you by a third party, in relation to the software under this agreement. you take responsibility for the suitability, selection, use and management of the software and the results obtained there from as well as their combination and the combination of the elements thereof with other apparatus, equipment, products, programs and services. nothing contained in these terms is to be construed as a warranty or representation by st as to the validity or scope of any and all ipr in respect of which a license is herein granted or constitutes a warranty or representation that any manufacture, use or sale by you hereunder are free from infringement of any intellectual property rights (ipr) other than those under which and to the extent to which rights thereto are granted hereunder or constitute an agreement to bring or prosecute actions or suits against third parties for infringements or confer any right upon a party to use in advertising, publicity or other medium, any name trademark or trade name or any other contraction, abbreviation, or simulation thereto of the other party or confer by implication, estoppel or otherwise, upon you any license or other right under any and all ipr except the licenses and rights expressly granted hereunder to you. in no event is st liable for any damages whatsoever (including, without limitation, damages for loss of business revenue or profits, business interruption, loss of business information or other pecuniary loss) arising out of the use of or the inability to use the software as part of an st application. st does not assume any responsibility for any errors that may appear in the software nor any responsibility to support or update the
UM1518 gui installation doc id 022791 rev 2 9/37 software. st retains the right to make changes to the software and its test specifications at any time, without notice. 5. entire agreement this agreement constitutes the entire agreement with st and supersedes any prior or contemporaneous oral or written agreements with respect to the subject matter of this agreement. 6. support under this agreement, st is under no obligation to assist in the use of the software, to provide you support of the software, or to provide maintenance, correction, modification, enhancement, or upgrades to the software. any action taken by st in this respect is unilaterally taken and subject only to st assessment - without any notice to you. any such action is considered as software and is automatically subject to this agreement. 7. termination of this license st is entitled to terminate this software license agreement at any time if you are in breach of any of the terms of this agreement. upon termination, you must immediately destroy the software. 8. export regulations you undertake to comply with all applicable laws, regulations, decrees and ordinances related to your use of the software. 9. applicable laws any dispute arising out of or in connection with this agreement which could not be amicably settled is to be finally settled under the rules of conciliation and arbitration of the international chamber of commerce by one or more arbitrators appointed in accordance with the said rules which the parties know and elect irrevocably. such arbitration is to take place in paris and be held in english. 3.2 system requirements a personal computer (pc) including: 1. operating system windows nt/2000/xp/7. 2. a hard disk with at least 15 mbytes of free space to install the gui. 3. one or more usb 1.1 ports.
gui installation UM1518 10/37 doc id 022791 rev 2 3.3 installing the software follow the instructions below to install the st7580 gui software. 1. extract the contents of the archive in a new directory. 2. launch ?setup.exe? to start the install procedure. 3. press ?next? button ( figure 4 ): figure 4. st7580 gui installation wizard 4. choose an installation path (the default path is suggested) and press the ?next? button, ( figure 5 ). figure 5. st7580 gui destination folder
UM1518 gui installation doc id 022791 rev 2 11/37 5. press the ?next? button to start the installation ( figure 6 ). figure 6. gui setup start 6. once the installation has completed, press the ?finish? button to conclude the process, ( figure 7 ). figure 7. gui setup finish
getting started UM1518 12/37 doc id 022791 rev 2 4 getting started 4.1 introduction the st7580 gui gives the user complete control of the st7580 device, with full access to all the settings and functions described in [ 2 ]. the gui can be used to: establish a connection to the st7580 modem configure the st7580 and manage all its settings perform any transmission and reception of data over the power line open a ping session, where at least two modems (a master device and one or more slave devices) can communicate exchanging data. a single instance of the st7580 gui can handle only one evalst7580-1 board at a time. figure 8 shows the main window of the st7580 gui. the panel is divided into two sections: 1. console: box displaying all the messages exchanged with the node. the messages can be cleared or saved in a .txt file through options on the ?tools? menu bar; 2. node panel: used to control an st7580 node; it is divided into five tabs to easily change between the main service blocks of the node: ? the properties and services of the connection to the pc; ? the device's basic configuration, related to mib objects 00h (modem configuration) and 01h (phy configuration); ? the characteristics of the exchanged power line frames (for both transmitted and received frames); ? the access (writing, reading, erasing) to the mib objects. ? the settings to open a ping session (selecting master or slave role) and display the communication results. a point in the top part of this window always displays the composition of the status message returned by the modem and the occurrence of error during the last requested command:
UM1518 getting started doc id 022791 rev 2 13/37 figure 8. st7580 gui 4.2 opening the com to establish communication with the evalst7580-1 demonstration board: 1. manually select the com port number associated to the board. 2. select the desired baud rate. note that the evalst7580-1 board has a factory default baud rate equal to 57600 bps. node p a nel 1 con s ole 2 am16527v1
getting started UM1518 14/37 doc id 022791 rev 2 figure 9. modem connection procedure if the connection is properly established, the light switches to green, and the console displays a positive notification and the status message returned by the modem: figure 10. modem connection success am11954v1 am11955v1
UM1518 services doc id 022791 rev 2 15/37 5 services 5.1 basic modem configuration at power-on, the default values stored in the mib objects are reported in [ 2 ]. from a power line communication point of view, it is already set to properly received frames (in compliance with values stored in mib objects modem configuration 00h and phy layer configuration 01h) and to accept transmission requests. if the user wants to change, at any moment, the two first mib values: 1. modem configuration 00h; 2. phy configuration 01h. all their parameters are selectable in the modem configuration tab: figure 11. modem configuration 2 1 modem con?guraon (mib object 00h) phy layer con?guraon (mib object 01h) am11956v1
services UM1518 16/37 doc id 022791 rev 2 the four buttons in the modem configuration tab, highlighted by the red squares, execute correspondingly: modem configuration write: it performs an ?mib write request? command automatically built with mib index 00h and data as selected in the objects above; modem configuration read: it performs an ?mib read request? command automatically built with mib index 00h; if the command is properly executed, the data contained in the expected ?mib read confirm? (sent by the st7580) is extracted and displayed in the objects above; phy configuration write: as the previous ?modem configuration write?, it performs an mib write request on the mib object 01h (phy layer configuration); phy configuration read: as the previous ?modem configuration read?, it performs an mib read request on the mib object 01h (phy layer configuration). 5.2 power line communication: transmission and reception in order to put into place a proper power line communication through the gui, it is enough to power on the evalst7580-1 and to open the usb port as explained in section 4.2 . the ?communication? tab contains all the parameters for st7580 commands related to power line communication: ?transmission? box: refers to three ?data request? commands and contains all their parameters and data to allow the user to choose the transmission settings; ?confirm? box: displays the parameters of the last ?data confirm? received from the st7580 device; ?reception? box: shows the parameters and the data of the last ?data indication? received. 5.2.1 power line transmission command as shown in figure 12 , the transmission box contains: 1. the ?tx layer? drop-down menu: through this parameter it is possible to choose which kind of data request command the gui addresses to the st7580. ? the phy_data selection determines a ?phy data request? command; ? the dl_data selection determines a ?dl data request? command; ? the ss_data selection determines a ?ss data request? command. 2. all transmission parameters to be filled in a data request command; note that: ? ?tx gain? value is accessible if ?gain selector? bit is equal to ?custom? value only; ? ?ss header length? value is accessible if selected ?tx layer? value is equal to ?ss_data? only. 3. the payload box where the data to be transmitted must be expressed in hexadecimal characters; 4. the length (in bytes) of the inserted payload data, automatically calculated and displayed. 5. the data request button that builds a data request command and transmits it to the st7580 connected device.
UM1518 services doc id 022791 rev 2 17/37 figure 12. power line transmission box after pressing the data request command, the console displays it, followed by the message returned by the st7580, i.e. either a corresponding confirm or error message, as displayed in figure 13 . figure 13. transmission notifications 5.2.2 power line confirm command the confirm box, as depicted in figure 14 , shows the parameters of the last data confirm command. a green/red led reports the success of the previous data request. !-v  $ata2equest &ormat   4ransmission 0arameters 4ransmission$ata  $ata2equest "utton  0ayload ,ength am1195 8 v1
services UM1518 18/37 doc id 022791 rev 2 figure 14. power line confirm box in the case of a negative result returned by the st7580 after a previous data request, the confirm status led only is refreshed to an ?off? status, whereas the other parameters in the ?confirm? box are not updated. 5.2.3 power line reception command in the case of reception of a data indication (phy, dl or ss) or a snifferindication (dl or ss) sent by the st7580 after a data reception over the power line, the command type is displayed on the console, while with received data, the frame format and electrical parameters are returned in the reception box. figure 15 reports the gui status after a dl_dataindication: !-v #onfirm parameters  #onfirm3tatus 
UM1518 services doc id 022791 rev 2 19/37 figure 15. reception notification 5.3 mib operations the mib objects are all accessible through the st7580 gui, in accordance with the possible operations and the range of values, as presented in [ 2 ]. ta bl e 2 lists the correspondence between mib objects and the tab where they are accessible in the st7580 gui: 2 fr a me form a t 4 electric a l p a r a meter s 3 received d a t a 1 received comm a nd am11960v1 table 2. mib objects access through st7580 gui mib object index mib object name st7580 gui tab 00h modem configuration modem configuration 01h phy configuration modem configuration 02h ss key mib 04h last data indication mib 05h last tx confirm mib 06h phy_data mib 07h dl_data mib 08h ss_data mib 09h host interface timeout com settings 0ah firmware version com settings
services UM1518 20/37 doc id 022791 rev 2 the st7580 gui automatically handles the mib subfields in accordance with mib object composition. figure 16 shows the position of mib objects inside the gui tabs: figure 16. position of mib objects the buttons present on the gui perform the allowed operations (writing, reading, erasing) on each corresponding object. 5.4 other st7580 commands 5.4.1 ping commands through a dedicated button located in the com settings tab, it is possible to send to the st7580 a pingrequest command with editable data payload. after the execution of the pingrequest command, a pingconfirm command is expected: the success of the previous request and data received are displayed through a dedicated led and box. figure 17 shows all the graphical objects dedicated to the pingrequest and pingconfirm commands: 0ah firmw a re ver s ion 09h ho s t interf a ce timeo u t 00h modem config u r a tion 01h phy config u r a tion 02h ss key 04h l as t d a t a indic a tion 05h l as t tx confirm 06h phy d a t a 07h dl d a t a 0 8 h ss d a t a am11961v1
UM1518 services doc id 022791 rev 2 21/37 figure 17. pingrequest and pingconfirm graphical tools 5.4.2 reset commands the resetrequest command can be properly formed and sent to the modem through a dedicated button on the bottom part of the modem configuration tab. after pressing the button, the console displays the command sequence, declaring it as a ?software reset? and returning the auto-reconfiguration feature status, as displayed in figure 18 : figure 18. resetrequest command: console view in the case of a resetindication command (generated for example if the resetn pin is driven at a low state), the unsolicited occurrence is directly displayed on the console and is named as a ?power on reset? event, as shown in figure 19 : d a t a to b e in s erted within a pingre qu e s t comm a nd d a t a ret u rned b y s t75 8 0 within a pingconfirm comm a nd b u tton to s end a pingre qu e s t to s t75 8 0 led di s pl a ying the pingconfirm s t a t us am11962v1 am1196 3 v1
services UM1518 22/37 doc id 022791 rev 2 figure 19. resetindication command: console view 5.4.3 status message the status message is automatically displayed with all its fields in the box below the gui console. the meaning of each field is explained in figure 20 : figure 20. status message fields 5.5 host interface errors the errors on a host interface communication flow (i.e. timeout elapsed, etc.) are reported on the ?error? led below the gui console. figure 21 shows an occurrence of a host interface error, when the t ack timeout has elapsed: am11967v1 config u r a tion s t a t us tr a n s mi ss ion s t a t us reception s t a t us active l a yer overc u rrent fl a g e s tim a ted temper a t u re am11964v1
UM1518 services doc id 022791 rev 2 23/37 figure 21. host interface error occurrence 5.6 ping session in order to evaluate the reliability of a communication between two or more devices, a ping session can be performed. a ping session consists of a master sending a sequence of messages to one or more slaves. if the messages are correctly received by slaves, they are re-sent to the master with the same electrical parameters and payload data, enabling the application to collect statistical data. when a ping session is active, the gui adds some automatic services to the functions and commands of the st7580 device. the ping tab displays different control and indicator values in accordance with the role that the evalkitst7580 board, handled by the gui, has during the ping session. figure 22 shows both ping tabs for master and slave nodes: error led am11965v1
services UM1518 24/37 doc id 022791 rev 2 figure 22. ping session: master and slave tabs the ping session can be logged in a .txt file, selecting the "save logs" switch located on the right-top edge of both master and slave tab. the resulting file records the powerline activity (both transmitted and received frames) of the node over the ping session. 5.6.1 ping protocol the ping session consists of an exchange of dl frames between the master node and one or more slave nodes. master node the master node sends a powerline frame sequence with selectable electrical features: carrier frequency value (it is overwritten in the mib object 01h - phy configuration as rx operating frequency); modulation type as in ordinary dl_datarequest command; tx gain parameter (it is overwritten in the mib object 01h - phy configuration). these electrical characteristics are equal to each transmitted frame in all frames sent by the master over ping session. the gui tool adds specific subfields to the payload field of the exchanged dl frames, as shown in figure 23 , where the blue parts need to be specified by the user, while the green one is automatically built by the gui tool. the red blocks refer to the fields automatically handled by the st7580. the payload length selected by the user is limited to 244 bytes. am16521v1
UM1518 services doc id 022791 rev 2 25/37 figure 23. payload subfields on dl frames of ping session the master sends periodically, with an inter-packet time selected by the user (in seconds), a burst of dl frames built (see figure 23 ) with a fixed value on slave address subfields (1 byte) and an increment value on frame number subfield. the frame number value is managed by the gui and it is equal to 0 on the first dl frame of the ping session, it increases on next sent frames up to value 255 hexadecimal ff. the next frame, after that with a number of frames equal to 255, is built with a subfield equal to 0. the user chooses the number of frames to be transmitted by the master during the ping session, which ends after sending this number of frames. after each sent frame, a further frame is expected to be received to successfully accomplish a single ping loopback, within an interval with length equal to inter-packet time. in case of a frame received by the master node, the gui compares the electrical parameters and payload to those for transmitted frame. three cases are taken into account by the gui: 1. a dl_dataindication has been notified by the modem reporting the same electrical features (modulation, carrier frequency), the payload length and data values (over the three subfields) as the last ones to be transmitted. the single ping loopback is reported as successful by increasing a dedicated "ping ok" counter; 2. a dl_dataindication has been notified by the modem reporting different electrical features or payload data. as dl_dataindication assumes a correct check on crc of the powerline frames, the communication link from slave to master is considered as good, while the difference of frames are supposed to be due to the link from master to slave. hence, the single ping loopback is reported as failed, by increasing a dedicated "ping wrong link 1" counter; 3. a dl_snifferindication has been notified by the modem. the communication link from slave to master is judged to be the cause of the wrong single ping loopback and dedicated "ping wrong link 2" counter increases. in case of no indication message notified by the st7580 within the inter-packet time interval, the single ping loopback is judged as failed, by increasing the corresponding "ping not ok" counter. figure 24 reports the flowchart of master node throughout ping session: dl s du p a ylo a d from 0 u p to 246 b yte s phy s du length 1 b yte crc 4 b yte, le 1 b yte s l a ve addre ss 1 b yte fr a me n u m b er from 0 to 244 b yte s am16522v1
services UM1518 26/37 doc id 022791 rev 2 figure 24. ping session: master flowchart tx fre qu ency, tx g a in overwritten on mib o b ject 01h (phy config u r a tion) dl oper a ting l a yer, s niffer fl a g a ctiv a ted written on mib o b ject 00h (modem config u r a tion) tr a n s mitted fr a me s =0 s t a rt timeo u t (inter-p a cket time v a l u e) tr a n s mitted fr a me s = tot a l fr a me n u m b er? no tr a n s mit fr a me fixed mod u l a tion, g a in,fre qu ency s elected s l a ve n u m b er, d a t a fr a me n u m b er = tr a n s mitted fr a me fr a me tr a n s mitted? ye s no indic a tion me ssa ge received? timeo u t el a p s ed? no ye s no ye s dl_d a t a indic a tion received? no ye s electric a l fe a t u re s , p a ylo a d d a t a e qua l to tho s e s ent? "ping ok" co u nter incremented "ping wrong link 1" co u nter incremented ye s no "ping not ok" co u nter incremented "ping wrong link 2" co u nter incremented dl_ s nifferindic a tion received ye s ping s top tr a n s mitted fr a me n u m b er h as incremented am1652 3 v1
UM1518 services doc id 022791 rev 2 27/37 slave node when a node is set as "slave" for a ping session, it automatically answers each received frame by sending a packet built with identical electrical features and payload data. before starting the ping session, the node needs to be configured with two frequency values for reception and the corresponding functional modulations. these values are overwritten to mib object 01h (physical configuration) and the node is set to work on a dual channel reception. from a functional point of view, a slave address number is assigned as well, as 1-byte value. the slave node re-transmits the frames with slave address subfield ( figure 23 ) equal to the slave address number assigned to it. the gui allows the user to choose between two stop conditions: 1.frame number: the gui stops the ping session after the node receives a fixed number of indication messages (dl_dataindication and dl_snifferindication); 2.time: the gui stops the ping session after a number of seconds selected by the user (if the number set through the gui is equal to 0, the ping session ends when the "stop ping" button is pressed). after an indication message, three cases are taken into account and displayed by the gui: 1. a dl_dataindication has been notified by the modem and the frame address subfield is equal to the frame address parameter set to the node; the node sends a powerline frame with same electrical conditions (frequency carrier, modulation) and data payload (in accordance with figure 23 subfields). the dedicated "received ok" counter increases. 2. a dl_dataindication has been notified by the modem and the frame address subfield is not equal to the frame address parameter set to the node; the dedicated "rx wrong address" counter increases and any frame is transmitted. 3. a dl_snifferindication has been notified by the st7580: the dedicated "rx wrong crc" counter increases. however, if the frame address subfield is equal to the frame address parameter set to the node, a powerline frame is transmitted with same electrical conditions (frequency carrier, modulation) and data payload (in accordance with figure 23 subfields). figure 25 reports the flowchart of master node throughout the ping session:
services UM1518 28/37 doc id 022791 rev 2 figure 25. ping session: slave flowchart rx fre qu encie s , rx mod u l a tion s overwritten on mib o b ject 01h (phy config u r a tion) dl oper a ting l a yer, s niffer fl a g a ctiv a ted written on mib o b ject 00h (modem config u r a tion) s top condition = 0 s top condition a chieved? no tr a n s mit fr a me with mod u l a tion, fre qu ency s l a ve n u m b er, d a t a field s e qua l to the one s of received fr a me indic a tion me ssa ge received? ye s dl_d a t a indic a tion received? no ye s s l a ve addre ss n u m b er e qua l to s et one? "tr a n s mitted fr a me s " co u nter incremented "ping wrong addre ss " co u nter incremented ye s no "rx wrong crc" co u nter incremented ye s ping s top received fr a me n u m b er incremented get s top condition (fr a me n u m b er or time) no fr a me tr a n s mitted? ye s ye s no "received ok" co u nter incremented ye s "rx wrong crc" co u nter incremented no dl_d a t a indic a tion received? no am16524v1
UM1518 services doc id 022791 rev 2 29/37 5.6.2 ping master session as shown in figure 26 , the following parameters listed in ta b l e 3 , can be selected for the ping session corresponding to master device. "control" parameters are the variables that can be selected by the user, while "indicators" are automatically displayed by the gui during the ping session. figure 26. ping master tab electric a l p a r a meter s on tr a n s mitting fr a me s p a ylo a d d a t a : ? type ? d a t a ? length ? de s tin a tion s l a ve a ddre ss ? fr a me n u m b er me ssa ge s etting s ping s e ss ion a ctivity a nd re su lt s am16525v1
services UM1518 30/37 doc id 022791 rev 2 table 3. ping session: master tab parameters parameter type description electrical parameters of transmitting frames frame modulation control choice of modulation type for frames to be transmitted during ping session tx frequency [hz] control frequency value for frames to be transmitted during ping session. tx frequency set (phy configuration) control frequency value expressed in the box ?tx freq [hz]? is written as reception frequency in mib object 01h (phy configuration) in accordance with the value (high or low) chosen by this switch. if a combination of these two control values is not allowed, an error is generated and ping session doesn?t start. tx gain control selection of the tx gain to be set for transmitting frames: it can be used either the value stored in the mib object 01h (?phy cfg? selection for this switch) or a new one (?new? selection for this switch) to be expressed in the value box which is overwritten in the same mib object. payload data type control selection for data composition of outgoing messages: -?fixed? is specified by the user in the box below - ?random? is automatically generated by the gui length value control or indicator length [bytes] for the transmitting payload - automatically calculated by the gui for fixed payload - selected by the user for random payload random payload length control selection for random payload type only. - ?fixed? sets the parameter ?length value? expressed in the left- side box as fixed length for each transmitting frame; - ?max? sets as the maximum length of each randomly generated frame, whose length is not fixed; data control or indicator data of payload of outgoing powerline frame, displayed in hexadecimal values only. - filled in by the user in case of ?fixed? frame type selection and it is a constant value for each transmitted frame; -automatically displayed for ?random? frame type selection, its value is different in each transmitting frame slave destination address control 1- byte field (hexadecimal value) referring to the slave address value. it is inserted by the gui as the first byte of payload field of each dl_datarequest built throughout the ping session. number of frames indicator 1- byte field (hexadecimal value) automatically displayed by the gui. it displays the ordinal number of transmitted frame and it is inserted by the gui as second byte of payload field of each dl_datarequest built throughout the ping session. message settings total frames control number of powerline frames that the ping session sends throughout the ping session
UM1518 services doc id 022791 rev 2 31/37 5.6.3 ping slave session as shown in figure 27 , the following parameters, listed in ta b l e 4 , can be selected for the ping session corresponding to slave device. inter-packet time [s] control interval which the gui sets during two consecutive transmitted frames within ping session. minimum value is 1 second. reset mib counters on start control selection to erase mib objects 06h (phy data) and 07h (dl data) before ping session starts. start and stop buttons start ping control button to start the ping session stop ping control button to force the ping session when the transmitted frames are less than the selected total frame number. ping session activity and results ping ok indicator number of ping loop (transmitted and received) performed without any wrong received bit. ping wrong link 1 indicator number of ping loop (transmitted and received) performed with wrong received bit during the communication from master to slave ping wrong link 2 indicator number of ping loop (transmitted and received) performed with wrong received bit during the communication from slave to master ping not ok indicator number of ping loop (transmitted and received) performed with no loopback frame reception by the master frame sent indicator number of frames successfully transmitted by the master, updated by the gui during the ping session execution. ping active indicator led displaying the ping session activity: -green when ping session is active; -red when ping session is not active. table 3. ping session: master tab parameters (continued) parameter type description
services UM1518 32/37 doc id 022791 rev 2 figure 27. ping slave tab table 4. ping session: slave tab parameters parameter type description reception settings rx high freq [hz] control frequency channel to be set for reception. it is overwritten before starting ping session as ?high frequency? value in mib object 01h (phy configuration) rx high channel mode control functional modulation (between psk and fsk families) on high channel. it is overwritten before starting ping session as ?rx high channel modulation? value in mib object 01h (phy configuration) rx low freq [hz] control frequency channel to be set for reception. it is overwritten before starting ping session as ?low frequency? value in mib object 01h (phy configuration) rx low channel mode control functional modulation (between psk and fsk families) on high channel. it is overwritten before starting ping session as ?rx low channel modulation? in mib object 01h (phy configuration) slave address settings slave address control 1-byte value (hexadecimal value) that sets the address value of the slave throughout the ping session. the slave retransmits the received frames with the address field equal to this value. ping session settings stop condition control selection on stop event for ping session - time: the ping session ends after a selected time interval (in seconds) - frame numbers: the ping session ends after reception of a selected frame number (not necessarily re-transmitted) reception s etting s received fr a me fe a t u re s : ? s l a ve a ddre ss ? d a t a ? length ? mod u l a tion ? pga code ? s nr v a l u e ? fre qu ency ch a nnel ping s e ss ion s etting s ping s e ss ion a ctivity a nd re su lt s s l a ve a ddre ss s etting am16526v1
UM1518 services doc id 022791 rev 2 33/37 ping time[s] or frame numbers control occurrence number of stop condition selection. the variable is displayed in accordance with ?stop condition? value. if ping time is set to 0, the ping session continues until ?stop ping? button is pressed. reset mib counters on start control selection to erase mib objects 06h (phy data) and 07h (dl data) before starting the ping session. start and stop buttons start ping control button to start the ping session stop ping control button to force the ping session before the stop condition is achieved. received frame features slave address indicator slave address field of the last received frame (i.e., first byte of the dl_dataindication or dl_snifferindication received by the st7580) data indicator payload data (without slave address field) of the received frame length indicator length (in bytes) of the payload data, calculated by the gui modulation indicator signal modulation of the received frame pga code indicator pga value on the received frame snr value indicator snr estimation (over uw reception) performed by st7580 frequency channel indicator rx channel (high or low) on the received frame ping session activity and results time count [s] indicator number of seconds elapsed during ping session. active if ?stop condition? is equal to time only, hidden otherwise. received ok indicator number of received frames with correct crc (i.e. dl_dataindication notified by the st7580) and slave address field equal to the value set in ?slave address? control. these frames are re-transmitted, in accordance with ping session rules. rx wrong address indicator number of received frames with correct crc (i.e. dl_dataindication notified by the st7580) and slave address field not equal to the value set in ?slave address? control. rx wrong crc indicator number of received frames with wrong crc (i.e. dl_snifferindication notified by the st7580). frames sent indicator number of frames successfully transmitted by the slave, updated by the gui during ping session execution ping active indicator led displaying the ping session activity: -green when ping session is active; -red when ping session is not active. table 4. ping session: slave tab parameters (continued) parameter type description
services UM1518 34/37 doc id 022791 rev 2 5.6.4 starting and st opping a ping session for both master and slave nodes, the ping session manually starts by pressing "start ping" button, while the session stops either automatically (if stop condition is achieved) or manually, pressing "stop ping" button.
UM1518 references doc id 022791 rev 2 35/37 6 references 1. st7580 datasheet: fsk, psk multi-mode power line networking system-on-chip; www.st.com/powerline 2. um0932: st7580 - fsk, psk multi-mode power line networking system-on-chip; rev 2 www.st.com/powerline
revision history UM1518 36/37 doc id 022791 rev 2 7 revision history table 5. document revision history date revision changes 11-apr-2012 1 initial release. 05-dec-2012 2 changed: figure 1 , figure 8 , figure 9 , figure 10 , figure 11 , figure 12 , figure 13 , figure 15 , figure 16 , figure 17 , figure 18 , figure 19 , figure 20 , figure 21 . added section 5.6 .
UM1518 doc id 022791 rev 2 37/37 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a particular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by two authorized st representatives, st products are not recommended, authorized or warranted for use in military, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or register ed trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2012 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of UM1518

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X